package com.mall.product.domain.entity;

import com.mall.common.annotation.Excel;
import com.mall.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 颜色组对象 pro_color_group
 *
 * @author zhonglin
 * @date 2020-04-29
 */
public class ProColorGroup
    extends BaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 颜色组id
   */
  private Long colorGroupId;

  /**
   * 颜色组编码
   */
  @Excel(name = "颜色组编码")
  private String colorGroupCode;

  /**
   * 颜色组名称
   */
  @Excel(name = "颜色组名称")
  private String colorGroupName;

  /**
   * 显示顺序
   */
  @Excel(name = "显示顺序")
  private Integer orderNum;

  /**
   * 状态（0正常 1停用）
   */
  @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
  private String status;

  /**
   * 删除标记（0代表存在 2代表删除）
   */
  private String delFlag;

  public void setColorGroupId(Long colorGroupId) {

    this.colorGroupId = colorGroupId;
  }

  public Long getColorGroupId() {

    return colorGroupId;
  }

  public void setColorGroupCode(String colorGroupCode) {

    this.colorGroupCode = colorGroupCode;
  }

  public String getColorGroupCode() {

    return colorGroupCode;
  }

  public void setColorGroupName(String colorGroupName) {

    this.colorGroupName = colorGroupName;
  }

  public String getColorGroupName() {

    return colorGroupName;
  }

  public void setOrderNum(Integer orderNum) {

    this.orderNum = orderNum;
  }

  public Integer getOrderNum() {

    return orderNum;
  }

  public void setStatus(String status) {

    this.status = status;
  }

  public String getStatus() {

    return status;
  }

  public void setDelFlag(String delFlag) {

    this.delFlag = delFlag;
  }

  public String getDelFlag() {

    return delFlag;
  }

  @Override
  public String toString() {

    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("colorGroupId", getColorGroupId())
                                                                    .append("colorGroupCode", getColorGroupCode())
                                                                    .append("colorGroupName", getColorGroupName())
                                                                    .append("orderNum", getOrderNum())
                                                                    .append("status", getStatus())
                                                                    .append("delFlag", getDelFlag())
                                                                    .append("createBy", getCreateBy())
                                                                    .append("createTime", getCreateTime())
                                                                    .append("updateBy", getUpdateBy())
                                                                    .append("updateTime", getUpdateTime())
                                                                    .append("remark", getRemark())
                                                                    .toString();
  }

}
